require("../less/advertisement.less")
document.ready(function(){
    let skip=document.querySelector(".skip");
    let leftTime=document.querySelector("#leftTime");
    let cont=5;
    let timeId=setInterval(function(){
        cont--;
         if(cont==0){
            location.href="register.html";
            clearInterval(timeId)
        }
        leftTime.innerHTML=cont+"s";
       
     
    },1000)
    skip.addEventListener("click",function(){
        clearInterval(timeId)
        location.href="register.html"
    })
})

